import {
  reqGetRchart
} from "../../api/Travels.js";

const state = {
  RC_data:{}
};
const getters = {};
const actions = {
  async getRchart({ commit }) {
    const data = await reqGetRchart();
    commit("GET_RCHART", data);
  },
};
const mutations = {
  GET_RCHART(state, data) {
    state.RC_data = data.data.list;
  },
};

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations,
};